<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.netjava.pojo.User;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>this is replay message's page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div>
       <div id="front">
          <jsp:include page="personfront.jsp"></jsp:include>
       </div>  
       
       <div id="main">
          <%User loginUser =(User)session.getAttribute("loginUser"); 
             if(null!=loginUser){
             int uid =Integer.parseInt(request.getParameter("uid"));
                if(loginUser.getId()==uid){%>
             <div class="center">
              <div class="right">
                  <form action="writereplaymsg.cn?uid=<%=uid %>" method="POST">
	                  <div class="content">
	                     <textarea rows="5" cols="55" name="replaymsgcontent"></textarea>
	                  </div>
	                  
	                  <div class="msg">	                      
	                      <input type="submit" value="回复" />
	                  </div>
                  </form>
              </div>
           </div>
           <%}else{%>
                   对不起，你不是本人，无权执行这个操作！！！
             <% }}else{ %>
                对不起，你还没有登陆，不能执行这个操作！！！
             <%} %>
       </div>
       
       <jsp:include page="../footer.jsp"></jsp:include>
    </div> 
  </body>
</html>
